package CAS;

import java.util.concurrent.atomic.AtomicInteger;

/**
 * todo
 *
 * @author: luolidong
 * @create: 2021-07-15 22:18
 * @version: 1.0
 */
public class CAS1 {
    public static void main(String[] args) {
        AtomicInteger atomicInteger = new AtomicInteger(1);
        boolean b = atomicInteger.compareAndSet(1, 2020);
        System.out.println(b);
    }
}
